using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    [Table("FimPayRequestDtlRate"), DataContract]
    public class PayRequestDtlRate
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "MoneyReqDtlsRateId", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        public int PayReqDtlRateId { get; set; }

        [ForeignKey("PayRequestDtl")]
		[DataMember, Display(Name = "MoneyReqDtlsId", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        public Nullable<int> PayRequestDtlId { get; set; }

        //[ForeignKey("ExpRate")]
        //[DataMember, Display(Name = "ExpRateId", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<int> ExpRateId { get; set; }

        //[DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<double> Amount { get; set; }

        //[DataMember, Display(Name = "Man", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<int> Man { get; set; }

        //[DataMember, Display(Name = "Day", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<double> Day { get; set; }

        //[DataMember, Display(Name = "Hour", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<double> Hour { get; set; }

        //[DataMember, Display(Name = "Minute", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<double> Minute { get; set; }

        //[ForeignKey("Emp")]
        //[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<int> EmpId { get; set; }

        //[ForeignKey("Class")]
        //[DataMember, Display(Name = "ClassId", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        //public Nullable<int> ClassId { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MoneyRequestDtlsRatesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual FIM.PayRequestDtl PayRequestDtl { get; set; }

        //public virtual BGM.MasExpenseRate ExpRate { get; set; }

        //public virtual HRM.Employee Emp { get; set; }

        //public virtual HRM.MpClass Class { get; set; }

    }
}